﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 动物
{
    class Animal
    {
        protected string name;
        public int i = 0;

        public Animal(string name)
        {
            this.name = name;
            //this.i++;
        }

        public string getname()
        {
            return name;
        }

        public virtual string Action()
        {
            //Console.WriteLine(name + "未知动作");
            string action = "未知动作";
            return action;
        }

        public void Count()
        {
            
            Console.WriteLine("{0}", i);
        }
    }
}
